#include "led.h"
#include <stdio.h>

static uint8_t led_status = 0;

void led_init(void) {
    printf("LED初始化完成\n");
    led_status = 0;
}

void led_set(uint8_t state) {
    led_status = state;
    if (state) {
        // 使用颜色输出
    printf("\033[1;32mLED打开\033[0m\n"); // 绿色显示
    } else {
    printf("\033[1;32mLED关闭\033[0m\n");
    }
}

uint8_t led_get_status(void) {
    return led_status;
}
